package com.cskaoyan.bean.StorageInfo;

import com.cskaoyan.bean.MarketStorage;
import lombok.Data;

import java.util.List;

/**
 * 
 * 创建日期: 2022/05/06 16:58
 * @author wangyonghong
 */
 @Data
public class StorageVo {
    public StorageVo(Integer limit, List<MarketStorage> list, Integer page, Integer pages, Integer total) {
        this.limit = limit;
        this.list = list;
        this.page = page;
        this.pages = pages;
        this.total = total;
    }

    public StorageVo() {
    }

    private Integer  limit;
    private List<MarketStorage> list;
    private Integer   page;
    private Integer   pages;
    private Integer    total;

    public StorageVo data(int total, int pages, Integer limit, Integer page, List<MarketStorage> marketStorages) {
        StorageVo userData = new StorageVo();
        userData.setLimit(limit) ;
        userData.setList(marketStorages);
        userData.setPage(page);
        userData.setPages(pages);
        userData.setTotal(total);
        return userData;
    }
}
